package lean;
import java.util.Scanner;
public class test3 {
    public static  void main(String[] args){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入利润:");
        int money=sc.nextInt();
        if(money<=100000) {
            double  count=money*0.1;
            System.out.println("奖金为:"+count);
            int sum=(int)count;
        }else if(money>100000&&money<200000) {
            double count1=((money-100000)*0.075)+money*0.1;
            System.out.println("奖金为:"+count1);
        }else if (money>200000&&money<400000) {
            double count2=(money-200000)*0.05+money*0.075;
            System.out.println("奖金为:"+count2);
        }else if (money>400000&&money<600000) {
            double count3=(money-400000)*0.03+money*0.05;
            System.out.println("奖金为:"+count3);
        }else if(money>600000&&money<1000000) {
            double count4=(money-600000)*0.015+money*0.03;
            System.out.println("奖金为:"+count4);
        }else if(money>1000000) {
            double count5=(money-1000000)*0.01+money*0.015;
            System.out.println("奖金为:"+count5);
        }


    }
}
